<?php

use think\facade\Route;

Route::rule('captcha','Verify/index','GET');
Route::rule('login','Login/login','POST');
Route::rule('logout','Login/logout','GET');

Route::rule('getAdminInfoByToken','User/getUserInfo','GET');
Route::rule('getMenuListByToken','User/getMenuList','GET');
//角色管理
Route::rule('getRoleList','Role/list','GET');
Route::rule('getRoleTreeById','Role/treeById','GET');
Route::rule('saveRole','Role/save','POST');
Route::rule('deleteRoleById','Role/deleteById','GET');
Route::rule('updateStatus','Role/updateStatus','GET');
//管理员管理
Route::rule('getAdminUserList','User/list','GET');
Route::rule('saveAdminUser','User/save','POST');
Route::rule('saveAdminUserPwd','User/updatePwd','POST');
Route::rule('updateUserStatus','User/updateStatus','GET');
Route::rule('deleteUserById','User/deleteById','GET');
//公用数据配置
Route::rule('getCategoryTree','Category/allTree','GET');
Route::rule('saveCategory','Category/save','POST');
Route::rule('updateCategoryStatus','Category/updateStatus','GET');
Route::rule('deleteCategory','Category/deleteById','GET');
Route::rule('getCategory','Category/category','GET');
Route::rule('getCategoryMultiple','Category/categoryMultiple','POST');

//文件上传
Route::rule('uploadFile','File/uploadFile','POST');
Route::rule('fileList','File/getFileList','GET');
//部门管理
Route::rule('getDepartmentList','Department/list','GET');
Route::rule('saveDepartment','Department/save','POST');
Route::rule('updateDepartmentStatus','Department/updateStatus','GET');
Route::rule('deleteDepartmentById','Department/deleteById','GET');
Route::rule('updateDepartmentList','Department/updateListData','GET');
//小程序用户管理
Route::rule('getWxUserList','WxUser/list','GET');
Route::rule('getWxUserInfo','WxUser/info','GET');
Route::rule('getWxUserEnterprise','WxUser/enterprise','GET');
Route::rule('getWxUserDetail','WxUser/detail','GET');
Route::rule('auditEnterprise','WxUser/audit','POST');
//轮播图管理
Route::rule('getBannerList','Banner/list','GET');
Route::rule('saveBanner','Banner/save','POST');
Route::rule('updateBannerStatus','Banner/updateStatus','GET');
Route::rule('deleteBannerById','Banner/deleteById','GET');
//零活类型/工种管理
Route::rule('getWorkTypeTree','WorkType/allTree','GET');
Route::rule('saveWorkType','WorkType/save','POST');
Route::rule('updateWorkTypeStatus','WorkType/updateStatus','GET');
Route::rule('deleteWorkType','WorkType/deleteById','GET');
//零活
Route::rule('getWorkList','Work/list','GET');
Route::rule('getWorkDetail','Work/detail','GET');
Route::rule('robWork','Work/rob','POST');
Route::rule('changeWorkPrice','Work/changePrice','POST');
Route::rule('getWorkApplyList','Work/applyList','GET');
Route::rule('employedWorkUser','Work/employed','POST');
Route::rule('cancelEmployedWorkUser','Work/employedCancel','POST');
Route::rule('getEmployedNum','Work/getEmployedNum','GET');
Route::rule('workDelay','Work/handlerDelay','POST');
Route::rule('workFinish','Work/handlerFinish','POST');
Route::rule('getWorkValuation','Work/getValuationBasis','GET');
Route::rule('saveWork','Work/handlerSave','POST');
Route::rule('delWork','Work/handlerDelete','GET');
//评价
Route::rule('commentList','Comments/getList');
Route::rule('commentInfo','Comments/getInfo');
Route::rule('workComment','Comments/handlerComment','POST');
//意见反馈
Route::rule('feedBackList','FeedBack/list');
Route::rule('deleteFeedBack','FeedBack/deleteById');
//首页统计
Route::rule('topNumStatistics','Statistics/topNum');
Route::rule('workPie','Statistics/workPie');
Route::rule('workLine','Statistics/workLine');
Route::rule('userPie','Statistics/userPie');
Route::rule('tableStatistics','Statistics/table');
Route::rule('tableWxUser','Statistics/wxUserTable');
//零工驿站管理
Route::rule('getPostList','Post/list','GET');
Route::rule('savePost','Post/save','POST');
Route::rule('updatePostStatus','Post/updatePost','GET');
Route::rule('deletePostById','Post/deleteById','GET');

//单页配置
Route::rule('getPageContent','Pages/getData','GET');
Route::rule('setPageContent','Pages/setData','POST');
